package com.zheng.springcloud.auth.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import com.zheng.springcloud.auth.domain.SysUserDTO;
import com.zheng.springcloud.common.Result;
/**
 * 
 * @Description: 用户API组件
 * @author: zhengchuanqing
 * @date: 2019年3月6日 下午11:57:21
 * @throws
 */
@FeignClient(value = "zheng-mall-service")
public interface SysUserApi {
	/**
     * 
     * @Description: 查询用户 
     * @author: zhengchuanqing
     * @date: 2019年3月6日 下午11:57:21
     * @param: 
     * @return: Result<SysUserDTO>
     * @throws
     */
    @GetMapping("/getSysUserById")
    public Result<SysUserDTO> getSysUser(@RequestParam("id") Long id);
    /**
     * 
     * @Description: 保存用户 
     * @author: zhengchuanqing
     * @date: 2019年3月6日 下午11:57:21
     * @param: 
     * @return: Result<SysUserDTO>
     * @throws
     */
    @PostMapping("/saveSysUser")
    public Result<SysUserDTO> saveSysUser(@RequestBody SysUserDTO sysUserDTO);

}
